Release 10.1A: OpenEdge Data Management:
DataServer for ORACLE
ROWID Characteristics
If you migrated your database to ORACLE and elected to use the
CREATE PROGRESS RECID FIELDoption during the migration, a unique 4-byte Integer column namedPROGRESS_RECIDwill have been automatically generated in your database tables along with a corresponding Index containing thePROGRESS_RECIDvalue as its key.Databases that are only pulled from the native environment or are migrated without the
CREATE PROGRESS RECID FIELDoption must either choose a unique index key from each table or the nativeROWIDto represent the Progress recid to support theRECIDand ROWID functions, and forward and backward scrolling within their 4GL sessions. Progress will internally map the selected unique key or nativeROWIDto the ProgressRECIDand ROWID functions. It is important to note that the unique index key used to derive the Progress ROWID must be a single component index for it to map to the ROWID of a temp-table as described in the following discussion. For more details, see the ROWID function discussion in Chapter 2, " Initial Programming Considerations."Also, before discussing ROWID as it relates to the RUN STORED-PROC statement, it is important to understand an important property of the Progress ROWID. The "ROWID - Standard Progress 4GL behavior" section presents this information.
ROWID - Standard Progress 4GL behavior
The ROWID value of a temp-table buffer will be different than the ROWID value of a record BUFFER even if the underlying data is identical. This difference exists because the ROWID function relies on the record buffer name.
Example 3–18 shows the standard expected Progress 4GL behavior.
Example 3–18: Expected 4GL behavior — ROWID value of a Temp-Table bufferThe following sections illustrate the differences between the
ROWIDvalue of a temp-table buffer and the ROWID value of a record BUFFER so that you can best understand, program for, and leverage the use of the ROWID function with theLOAD-RESULT-INTOclause of theRUN STORED-PROCEDUREcommand.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |